<table id="headertable">
	<tr><td colspan="4" style="background-color:#1abc9c; height:2px;"></td></tr>
    <tr>
    	<td class="sidetd"></td>
        <td style="background-color:#1abc9c; height:4px; width:100px; text-align:center; color:#FFF; font-size:20px; padding:4px; font-weight:800;">论坛控</td>
        <td style="text-align:right">
        	<a id="addforumbtn" href="/hezi/forum?action=create" target="_blank" class="btn btn-primary" style="margin:4px;">新加论坛</a>
            <a class="btn btn-primary" id="settingbtn" style="margin:4px;">设置</a>
            <a class="btn btn-primary" id="settingfullbtn" style="margin:4px;" href="/hezi/setting" target="_blank">完整设置</a>
            <a class="btn btn-primary" id="feedbackbtn" style="margin:4px;" rel="leanModal" 
                        name="feedback" href="#feedback">反馈</a>        
            
            <a id="viewallimagebtn" class="batchview btn btn-info" href="/hezi/postlist?postcategory=markedunproecessed" target="_blank" style="margin:4px;" >查看帖子</a>
            <a id="archivebtn" class="btn btn-info">归档</a>
            <a class="btn btn-primary" href="/hezi/scan?action=getreport" target="_blank" style="margin-top:4px; display:none">上次运行结果</a>
        </td>
        <td class="sidetd"></td>
    </tr>
    <tr>
   		<td class="sidetd">
    	<td></td>
        <td colspan="1" style="padding-top:20px;">
        	<ul class="jMenu" style="float:right;">
                <li>
                    <a id="hasnewimage"class="fNiv">有新图</a>
                </li>
            </ul>
            <ul class="jMenu" style="float:right;">
                <li>
                    <a id="allsite"class="fNiv">全选</a>
                </li>
            </ul>
            <ul class="jMenu" style="float:right;">
                <li>
                    <a class="fNiv">分组选择</a>
                    <ul style="display: none;">
                        <li class="arrow"></li>
                        #foreach($groupname in $groupnamelist ) 
                        <li><a class="selectforumoperation" classtype="$groupname">$groupname</a></li>
                        #end
                    </ul>
                </li>
            </ul>
        
            <ul id="jMenu1" class="jMenu" style="float:right;">
                <li>
                    <a class="fNiv">网站选择</a>
                    <ul style="display: none;">
                        <li class="arrow"></li>
                        #foreach($sitename in $sitenamelist ) 
                        <li><a class="selectforumoperation" classtype="$sitename">$sitename</a></li>
                        #end
                    </ul>
                </li>
            </ul>
            
            <ul id="jMenu" class="jMenu" style="float:right;">
                <li>
                    <a class="fNiv">论坛排序</a>
                    <ul style="display: none;">
                        <li class="arrow"></li>
                        <li><a class="orderby" href="/hezi/index?orderby=lastscantime">扫描时间</a></li>
                        <li><a class="orderby" href="/hezi/index?orderby=newimagecount">新图片数</a></li>
                        <li><a class="orderby" href="/hezi/index?orderby=forumid">论坛名称</a></li>
                    </ul>
                </li>
            </ul>
        </td>
        <td class="sidetd"></td>
    </tr>
</table>    






<script type="text/javascript">
            $(document).ready(function() {
                $(".jMenu").jMenu();
            });
</script>

<style>
#selectorderby{
	display:block;
	padding:4px;
	width:100px;
	font-weight:bold;
	text-align:center;
	font-size:16px;
}

#orderbylist{
	width:120px;
}
#selectorderby:hover{
	background:#1abc9c;
	color:#FFF;
}

#orderbyselector a{
	display:block;
	margin:4px;
}


#orderbyselector a:hover{
	background:#1abc9c;
	color:#FFF;
}



#headertable{
	width:100%;
	padding: 4px 20px 4px;
	text-align:center;
}
.sidetd{
	width:10%;
}

</style>
<script language="javascript">
$(function(){
	$("#archivebtn").click(function(){
		$("#archivebtn").removeClass("btn-info");
		console.log("开始归档数据库")
		$.get('/hezi/setting?action=archive',function(theback)
			  {
				console.log("back:" + theback);
				$("#archivebtn").addClass("btn-info");
				}
		);	
	});
	
	$(".selectforumoperation").click(function(){
		var classtype = $(this).attr("classtype");
		$("."+classtype).addClass("forumselected");
		$(".forumcount").html($(".forumselected").size());
		$(".batchoperation").show();
	});
	


})
</script>